<div class="secSearch">
	<input type="hidden" name="pcancel" id="pcancel" value="0" />
    <table cellpadding="0" cellspacing="0" border="0" width="100%">
        <tbody>
            <tr>        
                <td class="firstChild" width="20%">
                    <label for="poption">Tìm theo:</label>
                    <select name="poption" id="poption">
                        <option value="">Tất cả</option>
                        {if isset($smarty.session.npost)}
                            {html_options options=$arrOption selected=$smarty.session.npost.poption}
                        {else}
                            {html_options options=$arrOption}
                        {/if}
                    </select>
                </td>
                <td width="20%">
                    <label for="pkey">Từ khóa:</label>
                    <input type="text" name="pkey" id="pkey" value="{if isset($smarty.session.npost)}{$smarty.session.npost.pkey|escape}{/if}" maxlength="50"/>
                </td>                
                <td width="20%">
                    <label for="pstartdate">Ngày đăng:</label>
                    <input type="text" name="pstartdate" id="pstartdate" value="{if isset($smarty.session.npost)}{$smarty.session.npost.pstartdate|escape}{/if}" class="half firstItem"/>
                    <input type="text" name="penddate" id="penddate" value="{if isset($smarty.session.npost)}{$smarty.session.npost.penddate|escape}{/if}" class="half"/>
                </td>
                <td valign="bottom">
                    <input type="submit" value="Tìm kiếm" class="btn"/>
                    {if isset($smarty.session.ncancel) && $smarty.session.ncancel == 1}                
                        <input type="button" value="Thôi tìm kiếm" class="btnCancel" onclick="javascript:cancelSearch(this.form);"/>
                    {/if}
                </td>
            </tr> 
        </tbody>
    </table>
</div>